package org.example.core;

/**
 * 系统常量
 * @author Clavin
 */
public class Constants {

    /**
     * 表示升序的值
     */
    public static final String ORDER_ASC_VALUE = "asc";

    /**
     * 表示降序的值
     */
    public static final String ORDER_DESC_VALUE = "desc";

    /**
     * token通过header传递的名称
     */
    public static final String TOKEN_HEADER_NAME = "Authorization";

    /**
     * token通过参数传递的名称
     */
    public static final String TOKEN_PARAM_NAME = "access_token";

    /**
     * token认证类型
     */
    public static final String TOKEN_TYPE = "Bearer";

    public static final String ACCOUNT_NOT_EXIST = "账号不存在";
    public static final String ACCOUNT_FROZEN = "账号被冻结";
    public static final String PASSWORD_ERROR = "密码错误";
    public static final String LOGIN_SUCCESS = "登录成功";
    public static final String REGISTER_SUCCESS = "注册成功";
    public static final String REGISTER_ERROR = "注册失败";
    public static final String SAVE_FAILED = "保存失败";
    public static final String PARAMETER_CANNOT_BE_NULL = "参数不能为空";
    public static final String NOT_LOGGED_IN = "未登录";
    public static final String OLD_PASSWORD_INCORRECT = "原密码输入不正确";
    public static final String UPDATE_SUCCESS = "修改成功";
    public static final String UPDATE_FAILED = "修改失败";

}
